cmake_minimum_required(VERSION 3.12)

list(APPEND CMAKE_MESSAGE_INDENT "[ APP ] ==> ")

project(FOTF100 VERSION 1.0.0 LANGUAGES CXX)
 
# 查询QRC文件
file(GLOB_RECURSE QRC_FILES ${PROJECT_SOURCE_DIR}/*.qrc)

# 查询RC文件
file(GLOB_RECURSE RC_FILES ${PROJECT_SOURCE_DIR}/*.rc)

# 查询UI文件
file(GLOB_RECURSE UI_FILES ${PROJECT_SOURCE_DIR}/*.ui)

# 查询CPP文件
file(GLOB CPP_FILES ${PROJECT_SOURCE_DIR}/*.cpp)

# set(PROJECT_SOURCES ${PROJECT_SOURCES} ${QRC_FILES} ${RC_FILES} ${UI_FILES} ${PROJECT_CPP_SOURCES} ${CPP_FILES})
set(PROJECT_SOURCES ${QRC_FILES} ${RC_FILES} ${UI_FILES} ${PROJECT_CPP_SOURCES} ${CPP_FILES})
message(STATUS "lee========>>>> PROJECT_SOURCES = ${PROJECT_SOURCES}")


# 添加链接库目录
link_directories(${APP3RDPARTY_LIB_DIR} ${LIBRARY_OUTPUT_PATH})
link_libraries(${APP3RDPARTY_LIBS})


# 生成可执行文件
message(STATUS "lee========>>>> PROJECT_NAME = ${PROJECT_NAME}")
add_executable(${PROJECT_NAME} ${PROJECT_SOURCES})

# 链接动态库
target_link_libraries(${PROJECT_NAME} ${QT_LIBS})


